private "_unit";
if (!isnil "_this") then {
	_unit = _this;
};
if (isnil "_unit") then { _unit = player };
if (typename _unit == typename []) then {
	if (count _unit > 0) then { _unit = _unit select 0 } else { _unit = objNull };
};
if (typename _unit != typename objNull) then { _unit = objNull };
if (isnull _unit) then { _unit = player };

[(getPlayerUID _unit),["officer","admin"]] call mp_rights_fnc_hasRoles;